/*     */ package com.yss.sofa.cml.text;
/*     */ 
/*     */ import com.yss.sofa.cml.SerializableObject;
/*     */ 
/*     */ public class Segment
/*     */   implements SerializableObject
/*     */ {
/*     */   private static final long serialVersionUID = 1L;
/*     */   protected float leftX;
/*     */   protected float rightX;
/*     */   protected float scaleX;
/*     */   protected float scaleY;
/*     */   protected float ascent;
/*     */   protected float advance;
/*     */   protected float descent;
/*     */   protected float leading;
/*     */   protected char[] chars;
/*     */   protected int characterCount;
/*     */   protected boolean leftToRight;
/*     */ 
/*     */   public Segment()
/*     */   {
/*  28 */     this.scaleX = 1.0F;
/*  29 */     this.scaleY = 1.0F;
/*     */   }
/*     */ 
/*     */   public float getAscent() {
/*  33 */     return this.ascent;
/*     */   }
/*     */ 
/*     */   public float getDescent() {
/*  37 */     return this.descent;
/*     */   }
/*     */ 
/*     */   public float getLeading() {
/*  41 */     return this.leading;
/*     */   }
/*     */ 
/*     */   public float getAdvance() {
/*  45 */     return this.advance;
/*     */   }
/*     */ 
/*     */   public void setAscent(float ascent) {
/*  49 */     this.ascent = ascent;
/*     */   }
/*     */ 
/*     */   public void setDescent(float descent) {
/*  53 */     this.descent = descent;
/*     */   }
/*     */ 
/*     */   public void setLeading(float leading) {
/*  57 */     this.leading = leading;
/*     */   }
/*     */ 
/*     */   public void setAdvance(float advance) {
/*  61 */     this.advance = advance;
/*     */   }
/*     */ 
/*     */   public int getCharacterCount() {
/*  65 */     return this.characterCount;
/*     */   }
/*     */ 
/*     */   public boolean isLeftToRight() {
/*  69 */     return this.leftToRight;
/*     */   }
/*     */ 
/*     */   public void setCharacterCount(int characterCount) {
/*  73 */     this.characterCount = characterCount;
/*     */   }
/*     */ 
/*     */   public void setLeftToRight(boolean leftToRight) {
/*  77 */     this.leftToRight = leftToRight;
/*     */   }
/*     */ 
/*     */   public char[] getChars() {
/*  81 */     return this.chars;
/*     */   }
/*     */ 
/*     */   public void setChars(char[] chars) {
/*  85 */     this.chars = chars;
/*     */   }
/*     */ 
/*     */   public float getLeftX() {
/*  89 */     return this.leftX;
/*     */   }
/*     */ 
/*     */   public void setLeftX(float leftX) {
/*  93 */     this.leftX = leftX;
/*     */   }
/*     */ 
/*     */   public float getRightX() {
/*  97 */     return this.rightX;
/*     */   }
/*     */ 
/*     */   public void setRightX(float rightX) {
/* 101 */     this.rightX = rightX;
/*     */   }
/*     */ 
/*     */   public float getScaleX() {
/* 105 */     return this.scaleX;
/*     */   }
/*     */ 
/*     */   public void setScaleX(float scaleX) {
/* 109 */     this.scaleX = scaleX;
/*     */   }
/*     */ 
/*     */   public float getScaleY() {
/* 113 */     return this.scaleY;
/*     */   }
/*     */ 
/*     */   public void setScaleY(float scaleY) {
/* 117 */     this.scaleY = scaleY;
/*     */   }
/*     */ 
/*     */   public Segment clone() {
/* 121 */     Segment clone = null;
/*     */     try {
/* 123 */       clone = (Segment)super.clone();
/*     */     } catch (CloneNotSupportedException e) {
/* 125 */       throw new RuntimeException(e);
/*     */     }
/* 127 */     return clone;
/*     */   }
/*     */ 
/*     */   public String toString() {
/* 131 */     return "Segment[left=" + this.leftX + ", right=" + this.rightX + ", width=" + this.advance + "]";
/*     */   }
/*     */ }

/* Location:           X:\repository\com\yss\sofa\cml\cml-api\1.1.0\cml-api-1.1.0.jar
 * Qualified Name:     com.yss.sofa.cml.text.Segment
 * JD-Core Version:    0.6.0
 */